<template>
  <div class="app-container">
    <el-card>
      <div class="alert">
        <i class="el-icon-warning alert-icon"></i>
        <span>根据微信小程序平台运营规范，微信小程序内各业务暂不支持银行卡和分期支付。</span>
        <el-button type="text"> 查看详情 </el-button>
      </div>

      <div class="pay-box-list mt-20">
        <div class="pay-box-item">
          <svg-icon icon-class="wx" class="pay-box-img" />
          <div class="pay-box-content">
            <div class="pay-box-content-top">
              <p>
                <span class="title">微信支付</span>
                <span class="subtitle">微信实名认证法规</span>
              </p>
              <el-switch v-model="active" active-text="开启" inactive-text="关闭" />
            </div>
            <div class="pay-box-content-bottom">
              <span class="describe">
                资金结算至店铺余额，结算时扣0.6%交易手续费（微信收取）。（仅支持境内使用，支付宝内无法使用微信）
              </span>
              <el-button type="text" @click="configHandleClick"> 配置 </el-button>
            </div>
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'PayCenterList',
  components: {},
  props: {},
  data() {
    return {
      active: true
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    configHandleClick() {
      this.$router.push({ path: '/operation/pay_center/pay_configuration' })
    }
  }
}
</script>

<style lang="scss" scoped>
.alert {
  background-color: #fef0f0;
  color: #f56c6c;
  font-size: 12px;
  border-radius: 4px;
  .alert-icon {
    padding: 0 20px;
  }
}
.pay-box {
  &-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    border: 1px solid #d2d3d4;
    padding: 10px 20px;
  }
  &-img {
    width: 60px;
    height: 60px;
  }
  &-content {
    flex: 1;
    line-height: 30px;
    margin-left: 15px;
    &-top {
      display: flex;
      justify-content: space-between;
      .title {
        font-weight: bold;
      }
      .subtitle {
        color: #409eff;
        padding-left: 10px;
      }
    }
    &-bottom {
      display: flex;
      justify-content: space-between;
      .describe {
        color: $hw-text-color-title;
      }
    }
  }
}
</style>
